/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.utils.collections;

import java.util.HashMap;
import java.util.Map;

import javolution.util.FastMap;

/**
 * Class <code>Maps</code> Map集合.
 * 
 * @author jrwz
 * @version 2012-5-23下午05:09:46
 * @see com.lineage.server.utils.collections
 * @since JDK1.7
 */
public final class Maps {

    /**
     * 新哈希集合.
     * 
     * @param <K>
     *            - 此映射维护的键的类型
     * @param <V>
     *            - 映射值的类
     * @return 用默认初始容量 (16) 和默认加载因子 (0.75) 构造一个新的空哈希集合
     * 
     */
    public static <K, V> HashMap<K, V> newHashMap() {
        return new HashMap<K, V>();
    }

    /**
     * 将键映射到值的对象。一个映射不能包含重复的键；每个键最多只能映射一个值.
     * 
     * @param <K>
     *            - 此映射维护的键的类型
     * @param <V>
     *            - 映射值的类
     * @return FastMap<K, V>()
     */
    public static <K, V> Map<K, V> newMap() {
        return new FastMap<K, V>();
    }

    /** Map集合. */
    private Maps() {
    }
}
